#include "StdAfx.h"
#include "MeasureConfig.h"


CMeasureConfig::CMeasureConfig(void)
{
  Reset();
}


CMeasureConfig::~CMeasureConfig(void)
{
}

std::string CMeasureConfig::solution_path(void) const
{
  boost::filesystem::path p(solution_file_path_);
  return p.parent_path().string();
}

void CMeasureConfig::Reset(void)
{
  image_wnd_top_      = 0;
  image_wnd_left_     = 0;
  image_wnd_width_    = 640;
  image_wnd_height_   = 480;

  zoom_little_        = 9;
  zoom_big_           = 10;

  live_timer_         = 100;

  source_switch_      = true;
  image_source_       = kFromFile;
  image_folder_       = _T("C:\\");

  cross_size_         = 6;
  arrow_size_         = 2;

  debug_switch_       = false;

  cross_switch_       = false;
  cross_width_        = 30;
  cross_height_       = 30;

  cross_color_.a      = 0;
  cross_color_.r      = 0;
  cross_color_.g      = 255;
  cross_color_.b      = 0;

  PropertyWndVisible  = FALSE;
  CameraWndVisible    = FALSE;
  ModelWndVisible     = FALSE;
  BoxWndVisible       = FALSE;
  LineWndVisible      = FALSE;
  ArcWndVisible       = FALSE;
  ROIWndVisible       = FALSE;
  MeasureWndVisible   = FALSE;
  OutputWndVisible    = FALSE;
  EtchWndVisible      = FALSE;

  TrayRow             = 1;
  TrayCol             = 1;
}
